<%@ page language="java" contentType="text/html; charset=utf-8" import="java.util.*" pageEncoding="utf-8"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>注册页、请求页</title>
</head>
<body>
	<form action="<%=request.getContextPath()%>/regist.do" method="post" >
	姓名：<input type="text" name="name" /><br/>
	性别：<input type="text" name="sex" /><br/>
	座右铭：<input type="text" name="world" /><br/>
	<input type="submit"/>
	</form>
</body>
</html>